<?php
session_cache_expire(999999999);
	if(!isset($_SESSION)) 
	{ 
		session_start(); 
	}
	$id_employee=$_SESSION['IDEmployee'];
	include 'connection.php';
	if(isset($_SESSION['ngang']) && $_SESSION['ngang']=='on'){
		$_SESSION['ngang']='off';
		mysql_query("UPDATE employee SET Across='0' WHERE (IDEmployee='$id_employee')");
	}
	else{ 
		$_SESSION['ngang']='on';
		mysql_query("UPDATE employee SET Across='1' WHERE (IDEmployee='$id_employee')");
	}
	mysql_close($connection);
	echo "<script>window.history.back();</script> ";
?>